import request from "../utils/index"
const api = {
    //登录
    login: (data) => request("users/login", { method: "POST", data }),
    //添加账户
    AddAccount: (data) => request("users/addOrEditAccount", { method: "POST", data }),
    //获取所有账户列表
    getAccountsList: (data) => request("users/getAccountList", { method: "POST", data }),
    //删除账号
    delAccountById: (id) => request("users/delAccount?id=" + id, { method: "delete" }),
    //保存当前登录人的个人信息
    saveUserInfo: (data) => request("users/saveUserInfo", { method: "POST", data }),
    //获取当前登录账号信息
    getUserInfo: () => request("users/getUserInfo"),
}
export default api